
def func(n):
    if n<=1:
        return n
    return n*func(n-1)



if __name__=="__main__":
    
    n  = int(input())
    m = func(n)
    print(f"{n}的阶乘是{m}")